import Vue from 'vue'
import App from './App'
import uView from 'uview-ui';
import store from './store'//这个用上的不注释
import "./utlis/rewrite"
Vue.prototype.$store = store
//表单校验
import validate from '@/utlis/validate.js'
Vue.prototype.$validate=validate
Vue.prototype.$version='1.0.32'

Vue.use(uView);
Vue.config.productionTip = false

// 获取权限列表
Vue.prototype.permissionList = function (msg) {
  return this.$store.state.jurisdiction.privilegesInfo
}


App.mpType = 'app'
import { myRequest } from './utlis/https.js'

//自定义请求，this.$req()
Vue.prototype.$req = myRequest
const app = new Vue({
    ...App,
	store
})


import httpInterceptor from '@/config/http.interceptor.js'
Vue.use(httpInterceptor, app)
import httpApi from '@/api/index.js'
Vue.use(httpApi, app)
import tools from '@/utlis/tools.js'
Vue.use(tools, app)
import mqtt from '@/utlis/mqtt.js'
Vue.use(mqtt)
app.$mount()
